<template>
    <div class="content">
        <header>
            <slot name="title">默认标题</slot>
        </header>
        <ul>
            <slot name="body">
                <li>
                    <p class="left">#区块链</p>
                    <p>96</p>
                </li>
            </slot>
        </ul>
    </div>
</template>

<style scoped>
    .content {
        width: 300px;
        /* height: 100%; */
        background-color: #fff;
    }
    header {
        width: 100%;
        color: #fff;
        background-color: #009ff8;
        padding: 10px 20px;
        border-top-right-radius: 5px;
        border-top-left-radius: 5px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .content ul {
        width: 100%;
        padding: 0 20px;
        background-color: #fff;
        margin-top: 0;
    }
    /* .content ul li{
        list-style: none;
        width: 100%;
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #ccc;
    }
    .content ul li .left {
        padding: 5px;
        background-color: #eee;
        border-radius: 5px;
    }
    .content ul li:last-child {
        border: 0;
    }     */

</style>